.document-manager {
  .ant-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    .manager-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 24px;
      gap: 16px;

      .manager-controls {
        flex: 1;
        max-width: 600px;
      }
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #999;

      p {
        margin-top: 16px;
        font-size: 16px;
      }
    }

    .ant-list {
      .document-item {
        padding: 16px 0;
        border-bottom: 1px solid #f5f5f5;
        transition: all 0.3s ease;

        &:hover {
          background: #fafafa;
          border-radius: 6px;
          padding-left: 12px;
          padding-right: 12px;
        }

        &:last-child {
          border-bottom: none;
        }

        .ant-list-item-meta {
          .ant-list-item-meta-avatar {
            .anticon {
              display: flex;
              align-items: center;
              justify-content: center;
              width: 48px;
              height: 48px;
              background: #f5f5f5;
              border-radius: 8px;
            }
          }

          .ant-list-item-meta-content {
            .document-title {
              display: flex;
              align-items: center;
              gap: 8px;
              margin-bottom: 4px;

              .doc-name {
                max-width: 300px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                cursor: pointer;

                &:hover {
                  color: #1890ff;
                }
              }

              .ant-tag {
                margin: 0;
                font-size: 11px;
                padding: 0 6px;
                height: 20px;
                line-height: 18px;
              }
            }

            .ant-list-item-meta-description {
              .ant-space-vertical {
                width: 100%;
              }
            }
          }
        }

        .ant-list-item-action {
          margin-left: 16px;

          li {
            padding: 0 4px;

            .ant-btn-link {
              padding: 4px 8px;
              height: auto;
              font-size: 12px;

              &:hover {
                background: rgba(24, 144, 255, 0.1);
                border-radius: 4px;
              }

              &.ant-btn-dangerous:hover {
                background: rgba(255, 77, 79, 0.1);
              }
            }
          }
        }
      }
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    .ant-card {
      .manager-header {
        flex-direction: column;
        align-items: stretch;

        .manager-controls {
          max-width: none;

          .ant-row {
            .ant-col {
              margin-bottom: 8px;
            }
          }
        }
      }

      .ant-list {
        .document-item {
          .ant-list-item-meta {
            .ant-list-item-meta-content {
              .document-title {
                .doc-name {
                  max-width: 200px;
                  font-size: 14px;
                }
              }
            }
          }

          .ant-list-item-action {
            margin-left: 8px;

            li {
              .ant-btn-link {
                padding: 2px 6px;
                font-size: 11px;
              }
            }
          }
        }
      }
    }
  }

  @media (max-width: 576px) {
    .ant-card {
      .ant-list {
        .document-item {
          .ant-list-item-meta {
            .ant-list-item-meta-avatar {
              margin-right: 12px;

              .anticon {
                width: 40px;
                height: 40px;
                font-size: 24px;
              }
            }

            .ant-list-item-meta-content {
              .document-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;

                .doc-name {
                  max-width: none;
                  font-size: 13px;
                }
              }
            }
          }

          .ant-list-item-action {
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;

            li {
              margin: 0;
            }
          }
        }
      }
    }
  }
}